//
//  JSMLeavingHotTableViewCell.m
//  TakeYouTourTogether
//
//  Created by dllo on 15/12/1.
//  Copyright © 2015年 king. All rights reserved.
//

#import "JSMLeavingHotTableViewCell.h"

@implementation JSMLeavingHotTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView {
    self.mainImageView = [[UIImageView alloc] init];
    [self.contentView addSubview:self.mainImageView];
        
    self.titleLabel = [[UILabel alloc] init];
    [self.contentView addSubview:self.titleLabel];
    self.titleLabel.textColor = [UIColor whiteColor];
    
}

- (void)layoutSubviews {
    [super layoutSubviews];
    self.mainImageView.frame = CGRectMake(15, 10, TableViewCellWidth - 30, TableViewCellHeight - 20);
    self.titleLabel.frame = CGRectMake(15, 15, TableViewCellWidth - 30, TableViewCellHeight / 5);
}
@end
